package com.hopes.bizz.poll.om.mapper;


import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.hopes.bizz.poll.om.entity.BaseOmDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface PollDataHisMapper {
    @InterceptorIgnore(tenantLine = "true")
    void alterData(@Param("tableName") String table, @Param("id") Long id, @Param("data") String data);

    @InterceptorIgnore(tenantLine = "true")
    BaseOmDataEntity selectOneByMonitorSiteIdAndRangeDataTime(@Param("monitorSiteId") Long monitorSiteId, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime, @Param("tableName") String table);
}
